﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<IEnumerable<Dgg.Anug.Cqrs.Core.Presentation.Models.Admin.Solution>>" %>
<%@ Import Namespace="MvcContrib.UI.Grid" %>
<%@ Import Namespace="Dgg.Anug.Cqrs.Core.Presentation.Controllers" %>
<%@ Import Namespace="Dgg.Anug.Cqrs.Core.Presentation.Views" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	All Solutions
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
	<h2>All Solutions</h2>
	<%= Html.Grid(Model)
		.Columns(col =>
		{
			col.For(m => m.Name).Named("Name");
			col.For(m => Html.ActionLink<SolutionController>(c => c.Rename(Guid.Parse(m.Id)), "Rename")).Named(string.Empty).DoNotEncode();
			col.For(m => Html.DeleteLink<SolutionController>(c => c.Delete(Guid.Parse(m.Id)), "../../Content/img/cross.png", "Delete")).Named(string.Empty).DoNotEncode();
		})
	%>
	<p><%= Html.ActionLink<SolutionController>(c => c.Create(), "Create") %></p>
</asp:Content>
<asp:Content ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
